<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Shiro和SpringMVC集成</title>
</head>
<body>

	您好,<shiro:principal></shiro:principal>

	<shiro:hasPermission name="user:view">
	<h1>用户</h1>
	</shiro:hasPermission>

	<shiro:hasPermission name="role:view">
	<h1>角色</h1>
	</shiro:hasPermission>

	<shiro:hasPermission name="menu:view">
	<h1>菜单</h1>
	</shiro:hasPermission>
</body>
</html>